package com.defect.service.managementSercvice;

import com.defect.bo.*;
import com.defect.po.*;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.ArrayList;
import java.util.List;

public interface BaseInfoService {
    PageDetail searchBaseInfoList(BaseInfoListSearch baseInfoListSearch, Integer pageIndex, Integer pageSize);
    int delTaskArray(@RequestBody ArrayList<Integer> list);
    int delTask(int issueId);
    List<Project> getAllProjects();
    List<State> getAllStates();

    List<BaseInfo> getAllIssues();

    List<Type> getAllType();

    List<Severity> getAllSeveritys();

    List<Priority> getAllPrioritys();

    BaseInfo checkIssueName(String issueName);

    int addBaseInfo(BaseInfo baseInfo);
    int getId();

    int changeBaseInfo(BaseInfo baseInfo);

    List<User> getUserArray(BaseInfo baseInfo);

    int commitAllocation(Integer issueId, Integer userId);

    PageDetail searchUserBaseInfoList(UserBaseInfoListSearch userBaseInfoListSearch, Integer pageIndex, Integer pageSize, int userId);

    int commitDeal(BaseInfoDealItem baseInfoDealItem);

    List<WorkLog> getLogByIssueId(Integer issueId);

    PageDetail searchCommentBaseInfoList(UserBaseInfoListSearch userBaseInfoListSearch, Integer pageIndex, Integer pageSize);

    int commentDeal(CommentBo commentBo);
}
